{% extends 'tasks/base.html' %}

{% block title %}删除任务{% endblock %}

{% block content %}
<div class="card">
    <div class="card-header">
        <h1>删除任务</h1>
    </div>
    <div class="card-body">
        <p class="lead">你确定要删除任务 "{{ task.title }}"?</p>
        <form method="post">
            {% csrf_token %}
            <div class="d-flex justify-content-between">
                <a href="{% url 'task-list'  %}" class="btn btn-secondary">取消</a>
                <button type="submit" class="btn btn-danger">删除</button>
            </div>
        </form>
    </div>
</div>
{% endblock %}